function drag(id){
	var isdrag=false;
	var tx,ty,x,y;
	$(function(){
		document.getElementById(id).addEventListener('touchend',function(){
			isdrag = false;
		});
		document.getElementById(id).addEventListener('touchstart',start);
		document.getElementById(id).addEventListener('touchmove',movemouse);
		$('.choose-seat').on("touchmove",function(){
			return false;
		})
	});
	function movemouse(e){
		if(e.touches.length === 1){
			if (isdrag){
				var left = tx + e.touches[0].pageX - x;
				var top = ty + e.touches[0].pageY - y;
				$("#"+id).css({"left":left,"top":top});
				return false;
			}
		}
	}
	
	function start(e){
		if(e.touches.length === 1){
			isdrag = true;
			tx = parseInt(document.getElementById(id).style.left + 0);
			ty = parseInt(document.getElementById(id).style.top + 0);
			x = e.touches[0].pageX;
			y = e.touches[0].pageY;
		}
		return false;
	}
}


